package housekeeping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import housekeeping.pojo.Worker;
import housekeeping.pojo.WorkerApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @version 1.0
 * @Author Du
 * @Date 2025/7/7 02:02
 * @注释
 */
//@Mapper
public interface WorkerMapper extends BaseMapper<Worker> {
    @Update("Update worker set name = #{name}, id_card = #{idCard}, gender = #{gender}, age = #{age}, image = #{image},address = #{address}, service_type = #{serviceType}, work_experience = #{workExperience}, join_date = #{joinDate}, status = #{status} where phone = #{phone}")
    void updateWithoutId(Worker worker);
}
